package cn.tedu.csmall.product.controller;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Api("02.类别管理系统")
@RestController
@RequestMapping("/category")
public class CategoryController {

    @ApiOperation("添加类别")
    @ApiOperationSupport(order = 1)
    @PostMapping("/add-new")
    public void addNem(){};



    // http://localhost:8080/category/delete
    @ApiOperation("删除类别")
    @ApiOperationSupport(order = 2)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id",value = "类别ID",required = true, dataType = "long"),
            @ApiImplicitParam(name = "userid",value = "用户ID",required = true, dataType = "long")

    })
    @PostMapping("/delete")
    public void delete(Long userid ,Long id) {}

    // http://localhost:8080/category/update
    @ApiOperation("修改类别详情")
    @ApiOperationSupport(order = 3)
    @PostMapping("/update")
    public void update() {}

    // http://localhost:8080/category/get
    @ApiOperation("根据id查询类别详情")
    @ApiOperationSupport(order = 4)
    @PostMapping("/get")
    public void getStandardById() {}

    // http://localhost:8080/category/list
    @ApiOperation("查询类别列表")
    @ApiOperationSupport(order = 5)
    @PostMapping("/list")
    public void list() {}

}
